package com.lvcoding.sec3.secdemo3.config;

import com.lvcoding.sec3.secdemo3.validatecode.img.ImgCodeProperties;
import com.lvcoding.sec3.secdemo3.validatecode.sms.SmsCodeProperties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Data
@Component
@ConfigurationProperties(prefix = "sys.config")
public class SysConfig {

    private SmsCodeProperties smsCode = new SmsCodeProperties();

    private ImgCodeProperties imgCode = new ImgCodeProperties();

    private TokenProperties token = new TokenProperties();

    List<String> ignoreTokenUrls = new ArrayList<>();

}
